<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnStepCategoryIdsInDepartmentTable extends AbstractMigration
{
    public function up()
    {
        $this->table('department')
            ->addColumn('step_category_ids', 'string', ['null' => false, 'default' => '', 'limit' => 255, 'comment' => '工序分类id列表'])
            ->save();
    }

    public function down()
    {
        $this->table('department')->removeColumn('step_category_ids')->save();
    }
}
